# /code/config.py
import os
from dotenv import load_dotenv
import random

# 加载环境变量
load_dotenv()

# 部门列表
UserTreeURLList = [
    ['校区清单', '/inc/user_list/tree.php?DEPT_ID=0'],
    ['丝织路主校区-校长室', '/inc/user_list/tree.php?DEPT_ID=1'],
    ['丝织路主校区-办公室', '/inc/user_list/tree.php?DEPT_ID=2'],
    ['丝织路主校区-教务室', '/inc/user_list/tree.php?DEPT_ID=3'],
    ['丝织路主校区-学生发展室', '/inc/user_list/tree.php?DEPT_ID=4'],
    ['丝织路主校区-总务处', '/inc/user_list/tree.php?DEPT_ID=5'],
    ['丝织路主校区-实训与培训处', '/inc/user_list/tree.php?DEPT_ID=6'],
    ['丝织路主校区-信息中心', '/inc/user_list/tree.php?DEPT_ID=7'],
    ['丝织路主校区-信息技术系', '/inc/user_list/tree.php?DEPT_ID=8'],
    ['丝织路主校区-智能制造系', '/inc/user_list/tree.php?DEPT_ID=9'],
    ['丝织路主校区-汽车技术系', '/inc/user_list/tree.php?DEPT_ID=10'],
    ['人民路教学点', '/inc/user_list/tree.php?DEPT_ID=11'],
    ['绿岛湖实训基地-艺术专业部', '/inc/user_list/tree.php?DEPT_ID=12'],
    ['丝织路主校区-校工会', '/inc/user_list/tree.php?DEPT_ID=14'],
    ['绿岛湖实训基地-办公室', '/inc/user_list/tree.php?DEPT_ID=34'],
    ['绿岛湖实训基地-教务处', '/inc/user_list/tree.php?DEPT_ID=35'],
    ['绿岛湖实训基地-学生处', '/inc/user_list/tree.php?DEPT_ID=36'],
    ['绿岛湖实训基地-总务处', '/inc/user_list/tree.php?DEPT_ID=37'],
    ['南庄教学点-办公室', '/inc/user_list/tree.php?DEPT_ID=38'],
    ['南庄教学点-教务处', '/inc/user_list/tree.php?DEPT_ID=39'],
    ['南庄教学点-学生处', '/inc/user_list/tree.php?DEPT_ID=40'],
    ['南庄教学点-总务处', '/inc/user_list/tree.php?DEPT_ID=41'],
    ['丝织路主校区-财务室', '/inc/user_list/tree.php?DEPT_ID=42'],
    ['南庄教学点-基础科组', '/inc/user_list/tree.php?DEPT_ID=44'],
    ['南庄教学点-机械科组', '/inc/user_list/tree.php?DEPT_ID=45'],
    ['丝织路主校区-示范办', '/inc/user_list/tree.php?DEPT_ID=46'],
    ['南庄教学点-校长室', '/inc/user_list/tree.php?DEPT_ID=48'],
    ['丝织路主校区-实训与培训室场室管理员', '/inc/user_list/tree.php?DEPT_ID=49'],
    ['丝织路主校区-外聘教师', '/inc/user_list/tree.php?DEPT_ID=51'],
    ['丝织路主校区-学校发展室', '/inc/user_list/tree.php?DEPT_ID=52'],
    ['丝织路主校区-顾问室', '/inc/user_list/tree.php?DEPT_ID=53'],
    ['丝织路主校区-绿岛湖校区校本部上课教师', '/inc/user_list/tree.php?DEPT_ID=54'],
    ['江湾教学点-校长室', '/inc/user_list/tree.php?DEPT_ID=56'],
    ['江湾教学点-办公室', '/inc/user_list/tree.php?DEPT_ID=57'],
    ['江湾教学点-教务处', '/inc/user_list/tree.php?DEPT_ID=58'],
    ['江湾教学点-学生处', '/inc/user_list/tree.php?DEPT_ID=59'],
    ['江湾教学点-实训与培训处', '/inc/user_list/tree.php?DEPT_ID=60'],
    ['江湾教学点-总务处', '/inc/user_list/tree.php?DEPT_ID=61'],
    ['江湾教学点-语数英科组', '/inc/user_list/tree.php?DEPT_ID=62'],
    ['江湾教学点-公共基础课科组', '/inc/user_list/tree.php?DEPT_ID=65'],
    ['江湾教学点-会计科组', '/inc/user_list/tree.php?DEPT_ID=68'],
    ['江湾教学点-电子商务科组', '/inc/user_list/tree.php?DEPT_ID=69'],
    ['南庄教学点-工美科组', '/inc/user_list/tree.php?DEPT_ID=74'],
    ['丝织路主校区-党委', '/inc/user_list/tree.php?DEPT_ID=73'],
    ['丝织路主校区-双高办', '/inc/user_list/tree.php?DEPT_ID=75'],
    ['丝织路主校区-体育科组', '/inc/user_list/tree.php?DEPT_ID=76'],
    ['绿岛湖实训基地-园林科组', '/inc/user_list/tree.php?DEPT_ID=77'],
    ['绿岛湖实训基地-公共基础科组', '/inc/user_list/tree.php?DEPT_ID=78'],
    ['技工学校', '/inc/user_list/tree.php?DEPT_ID=82']]

UserAgentList = ['Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14',
                 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14',
                 'Opera/9.80 (Windows NT 6.1; U; es-ES) Presto/2.9.181 Version/12.00',
                 'Mozilla/5.0 (Windows NT 5.1) Gecko/20100101 Firefox/14.0 Opera/12.0',
                 'Opera/9.80 (Windows NT 6.0; U; pl) Presto/2.10.229 Version/11.62',
                 'Opera/9.80 (Windows NT 5.1; U; en) Presto/2.9.168 Version/11.51',
                 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; de) Opera 11.51',
                 'Opera/9.80 (Windows NT 5.1; U; zh-tw) Presto/2.8.131 Version/11.10',
                 'Opera/9.80 (X11; Linux i686; U; ja) Presto/2.7.62 Version/11.01',
                 'Opera/9.80 (Windows NT 6.1; U; zh-cn) Presto/2.7.62 Version/11.01']

# 随机选择UserAgent
USERAGENT = random.sample(UserAgentList, 1)[0]

# 项目标题
PROJECT_TITLE = """

   ____  ___       __  ___            _ __            
  / __ \/   |     /  |/  /___  ____  (_) /_____  _____
 / / / / /| |    / /|_/ / __ \/ __ \/ / __/ __ \/ ___/
/ /_/ / ___ |   / /  / / /_/ / / / / / /_/ /_/ / /    
\____/_/  |_|  /_/  /_/\____/_/ /_/_/\__/\____/_/     
                              Prower by GwongZaak Liu                                     
"""